home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / T / TC Prog Guide.cpt / picture ƒ / coord.h < prev    next >
Text File  |  1990-11-08  |  1KB  |  46 lines

  1. /*
  2. *    FILE:        coord.h
  3. *    AUTHOR:        R. Gonzalez
  4. *    CREATED:    October 2, 1990
  5. *
  6. *    Defines 2D and 3D coordinate classes for the picture
  7. *    application.
  8. */
  9.  
  10. # ifndef    coord_h
  11. # define    coord_h
  12.  
  13. # include    "class.h"
  14. # include    "frame.h"
  15. # include    "trans.h"
  16.  
  17. /******************************************************************
  18. *   2D coordinate
  19. ******************************************************************/
  20. struct    Coord2:Generic_Class
  21. {
  22.  
  23.     double            x;    /* public */
  24.     double            y;    /* public */
  25.     
  26.     boolean            init(void);
  27.     virtual void    set(double,double);
  28.     virtual void    convert(Coord2*,Frame*,Frame*);
  29. };
  30.  
  31. /******************************************************************
  32. *   3D coordinate
  33. ******************************************************************/
  34. struct    Coord3:Generic_Class
  35. {
  36.     double            x;    /* public */
  37.     double            y;    /* public */
  38.     double            z;    /* public */
  39.     
  40.     boolean            init(void);
  41.     virtual void    set(double,double,double);
  42.     virtual void    apply(Coord3*,Transformation*);
  43.     virtual void    equate(Coord3*);
  44. };
  45.  
  46. # endif